package cn.ld.fj.entity;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by lixiangjun on 2017/8/1.
 */

@Entity
@Table(name = "ES_FOOD")
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
public class Food extends IdEntity {

    private String foodName;
    private Long foodType;
    private String description;

    private String image;

    private float price;

    private float disCountPrice;

    private String other;

    private int type;  //1 上线  2 下线

    private String foodTastes; //是否口味

    public String getFoodTastes() {
        return foodTastes;
    }

    public void setFoodTastes(String foodTastes) {
        this.foodTastes = foodTastes;
    }

    public String getFoodName() {
        return foodName;
    }

    public void setFoodName(String foodName) {
        this.foodName = foodName;
    }

    public Long getFoodType() {
        return foodType;
    }

    public void setFoodType(Long foodType) {
        this.foodType = foodType;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public float getDisCountPrice() {
        return disCountPrice;
    }

    public void setDisCountPrice(float disCountPrice) {
        this.disCountPrice = disCountPrice;
    }

    public String getOther() {
        return other;
    }

    public void setOther(String other) {
        this.other = other;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }
}
